home *** CD-ROM | disk | FTP | other *** search
/ PC for Alla 2005 May / PC för Alla 0505.iso / fullversioner / realsoft3d / data1.cab / Scripting / scripts / js / real / frio / r3oraw.js < prev    next >
Encoding:
JavaScript  |  2005-04-04  |  6.2 KB  |  194 lines

  1.  
  2. // JavaScript wrapper for r3oraw.h
  3. // Auto generated file, do not modify by hand
  4. // Copyright ⌐ 2004, Realsoft Graphics Oy
  5.  
  6. var R3_RAWOUTSETTINGS_H = 1;
  7. include("real/frio/r3output.js")
  8.  
  9.  
  10. var R3CLID_RAWOUTPUTSETTINGS = 757;
  11.  
  12.  
  13.  
  14.  
  15. // Description: Attempts to enable a channel and optionally defines the storage type for it. *
  16. //      If the channel was already enabled, the method only checks the old storage type *
  17. //      and the new given one and selects the more accurate one (if variable storage type
  18. //      supported). * If no storage type is defined, the default storage type as defined by
  19. //      R3CHCA_NormalStorageType * will be used.
  20. // p1: Integer, storage type to use for the channel (if 0, default or previous value used)
  21. // p2: String, name of the channel. If NULL, default class defined channel name is used
  22. // p3: Integer, channel base class id 
  23.  
  24. R3RAWOSETM_ENABLECHANNEL = 757000;
  25.  
  26. function mR3RAWOSETM_ENABLECHANNEL(p1, p2, p3) {
  27.   DoA3(this.r3obj, 757000, p1, R3TID_INTEGER, 0, p2, R3TID_STRING, 0, p3, R3TID_INTEGER, 0);
  28. }
  29.  
  30. // Description: Enables a channel using the parameters from RAWM_ENUMCHANNELS. * Can be used for building
  31. //      the channel list from an existing datatype object.
  32. // p1: Integer, channel index
  33. // p2: Integer, channel clid
  34. // p3: Tag[], tag list. See r3raw.h and R3RAWM_ENUMCHANNELS for more information. 
  35.  
  36. R3RAWOSETM_DTCALLBACKENABLEC = 757001;
  37.  
  38. function mR3RAWOSETM_DTCALLBACKENABLEC(p1, p2, p3) {
  39.   Do3(this.r3obj, 757001, p1, R3TID_INTEGER, 0, p2, R3TID_INTEGER, 0, p3, R3TID_TAG, R3TNF_ARRAY);
  40. }
  41.  
  42. // Description: disables a channel enabled by the previous method.
  43. // p3: String, name of the channel 
  44.  
  45. R3RAWOSETM_DISABLECHANNEL = 757002;
  46.  
  47. function mR3RAWOSETM_DISABLECHANNEL(p3) {
  48.   DoA(this.r3obj, 757002, p3, R3TID_STRING, 0);
  49. }
  50.  
  51. // Description: disables all channels
  52.  
  53. R3RAWOSETM_DISABLEALLCHANNEL = 757003;
  54.  
  55. function mR3RAWOSETM_DISABLEALLCHANNEL() {
  56.   DoA(this.r3obj, 757003, 0, R3TID_INTEGER, 0);
  57. }
  58.  
  59. // Description: sets the storage type for a channel
  60. // p1: String, name of the channel
  61. // p3: Integer, storage type to use for the channel R3TID_BYTE-R3TID_FLOAT, see r3typids.h
  62.  
  63. R3RAWOSETM_SETCHANNELSTORAGE = 757004;
  64.  
  65. function mR3RAWOSETM_SETCHANNELSTORAGE(p1, p3) {
  66.   DoA2(this.r3obj, 757004, p1, R3TID_STRING, 0, p3, R3TID_INTEGER, 0);
  67. }
  68.  
  69. // Description: clears storage types of all channels. Storage types * of enabled channes must be
  70. //      then redefined before use !
  71.  
  72. R3RAWOSETM_CLEARSTORAGETYPES = 757005;
  73.  
  74. function mR3RAWOSETM_CLEARSTORAGETYPES() {
  75.   DoA(this.r3obj, 757005, 0, R3TID_INTEGER, 0);
  76. }
  77.  
  78. // Description: Adds all channels of a R3RAYNODE list to the object
  79. // p3: r3List, a list of R3RAYNODEs (see r3output.h)
  80.  
  81. R3RAWOSETM_INSERTCHANNELLIST = 757006;
  82.  
  83. function mR3RAWOSETM_INSERTCHANNELLIST(p3) {
  84.   DoA(this.r3obj, 757006, p3, R3TID_LIST, 0);
  85. }
  86.  
  87. // Description: sets the 'normal value' for a channel
  88. // p1: String, name of the channel
  89. // p3: Integer, normvalue.
  90.  
  91. R3RAWOSETM_SETNORMALVALUE = 757007;
  92.  
  93. function mR3RAWOSETM_SETNORMALVALUE(p1, p3) {
  94.   DoA2(this.r3obj, 757007, p1, R3TID_STRING, 0, p3, R3TID_INTEGER, 0);
  95. }
  96.  
  97. // Description: changes a channel name
  98. // p1: String, old name of the channel
  99. // p3: String, new name of the channel
  100.  
  101. R3RAWOSETM_RENAMECHANNEL = 757008;
  102.  
  103. function mR3RAWOSETM_RENAMECHANNEL(p1, p3) {
  104.   DoA2(this.r3obj, 757008, p1, R3TID_STRING, 0, p3, R3TID_STRING, 0);
  105. }
  106.  
  107. // Description: sets the signed/unsigned state for a channel
  108. // p1: String, name of the channel
  109. // p3: Boolean, if TRUE channel values are treated as signed units.
  110.  
  111. R3RAWOSETM_SIGNED = 757009;
  112.  
  113. function mR3RAWOSETM_SIGNED(p1, p3) {
  114.   DoA2(this.r3obj, 757009, p1, R3TID_STRING, 0, p3, R3TID_BOOLEAN, 0);
  115. }
  116.  
  117.  
  118.  
  119.  
  120. R3RAWOSETA_ChannelList = 757500;
  121. function GetR3RAWOSETA_ChannelList() {
  122.   return R3Get(this.r3obj, R3RAWOSETA_ChannelList, R3TID_LIST, R3TNF_ARRAY); 
  123. }
  124.  
  125. R3RAWOSETA_ChannelCount = 757501;
  126. function SetR3RAWOSETA_ChannelCount(value) {
  127.   R3Set(this.r3obj, R3RAWOSETA_ChannelCount, value, R3TID_INTEGER, 0); 
  128. }
  129.  
  130. function GetR3RAWOSETA_ChannelCount() {
  131.   return R3Get(this.r3obj, R3RAWOSETA_ChannelCount, R3TID_INTEGER, 0); 
  132. }
  133.  
  134. R3RAWOSETA_Channels = 757502;
  135. function SetR3RAWOSETA_Channels(value) {
  136.   R3Set(this.r3obj, R3RAWOSETA_Channels, value, R3TID_INTEGER, R3TNF_ARRAY); 
  137. }
  138.  
  139. function GetR3RAWOSETA_Channels() {
  140.   return R3Get(this.r3obj, R3RAWOSETA_Channels, R3TID_INTEGER, R3TNF_ARRAY); 
  141. }
  142.  
  143. R3RAWOSETA_ChannelIndices = 757503;
  144. function GetR3RAWOSETA_ChannelIndices() {
  145.   return R3Get(this.r3obj, R3RAWOSETA_ChannelIndices, R3TID_INTEGER, R3TNF_ARRAY); 
  146. }
  147.  
  148. R3RAWOSETA_ChannelTypes = 757504;
  149. function SetR3RAWOSETA_ChannelTypes(value) {
  150.   R3Set(this.r3obj, R3RAWOSETA_ChannelTypes, value, R3TID_INTEGER, R3TNF_ARRAY); 
  151. }
  152.  
  153. function GetR3RAWOSETA_ChannelTypes() {
  154.   return R3Get(this.r3obj, R3RAWOSETA_ChannelTypes, R3TID_INTEGER, R3TNF_ARRAY); 
  155. }
  156.  
  157. R3RAWOSETA_ChannelNormValues = 757505;
  158. function GetR3RAWOSETA_ChannelNormValues() {
  159.   return R3Get(this.r3obj, R3RAWOSETA_ChannelNormValues, R3TID_INTEGER, R3TNF_ARRAY); 
  160. }
  161.  
  162.  
  163.  
  164. function r3Rawoutputsettings () { 
  165.    this.base = r3God;
  166.    if(arguments.length) {
  167.       this.base(R3CLID_RAWOUTPUTSETTINGS, arguments);
  168.    }
  169.    // Methods
  170.    this.ENABLECHANNEL=mR3RAWOSETM_ENABLECHANNEL;
  171.    this.DTCALLBACKENABLEC=mR3RAWOSETM_DTCALLBACKENABLEC;
  172.    this.DISABLECHANNEL=mR3RAWOSETM_DISABLECHANNEL;
  173.    this.DISABLEALLCHANNEL=mR3RAWOSETM_DISABLEALLCHANNEL;
  174.    this.SETCHANNELSTORAGE=mR3RAWOSETM_SETCHANNELSTORAGE;
  175.    this.CLEARSTORAGETYPES=mR3RAWOSETM_CLEARSTORAGETYPES;
  176.    this.INSERTCHANNELLIST=mR3RAWOSETM_INSERTCHANNELLIST;
  177.    this.SETNORMALVALUE=mR3RAWOSETM_SETNORMALVALUE;
  178.    this.RENAMECHANNEL=mR3RAWOSETM_RENAMECHANNEL;
  179.    this.SIGNED=mR3RAWOSETM_SIGNED;
  180.  
  181.    // Attributes
  182.    this.GetChannelList=GetR3RAWOSETA_ChannelList;
  183.    this.GetChannelCount=GetR3RAWOSETA_ChannelCount;
  184.    this.SetChannelCount=SetR3RAWOSETA_ChannelCount;
  185.    this.GetChannels=GetR3RAWOSETA_Channels;
  186.    this.SetChannels=SetR3RAWOSETA_Channels;
  187.    this.GetChannelIndices=GetR3RAWOSETA_ChannelIndices;
  188.    this.GetChannelTypes=GetR3RAWOSETA_ChannelTypes;
  189.    this.SetChannelTypes=SetR3RAWOSETA_ChannelTypes;
  190.    this.GetChannelNormValues=GetR3RAWOSETA_ChannelNormValues;
  191. }
  192.  
  193. r3Rawoutputsettings.prototype=new r3Output;
  194. // r3oraw.h_H